package com.itheima.Oop;

public class PhoneDemo1 {
    public static void main(String[] args) {
        Phone p = new Phone();
        System.out.println(p);
        System.out.println(p.brand);
        System.out.println(p.price);
        p.brand = "小米手机";
        p.price = 2999;
        System.out.println(p.brand);
        System.out.println(p.price);
        p.call("张三");
        p.sendMessage();
        int sum = p.sum(10,10);
        System.out.println(sum);
    }
}
